//
//  HMDefaultsTool.h
//  仿真开发
//
//  Created by Cloud on 2017/3/23.
//  Copyright © 2017年 B.HOPE. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HMDefaultsTool : NSObject

//-------偏好设置的存取工具--------
//保存bool到偏好设置
+ (void)saveBool:(BOOL)b forKey:(NSString *)key;
//读取bool从偏好设置
+ (BOOL)boolForKey:(NSString *)key;

//保存对象到偏好设置
+(void)saveObject:(id)object forKey:(NSString *)key;
//读取对象到从偏好设置
+(id)objetForKey:(NSString *)key;
//删除对象到从偏好设置
+ (void)removeObjectForKey:(NSString *)key;

@end
